<template>
  <div class="goods">
    <h4>商品列表:{{ pname }}</h4>
    <p>商品介绍:{{ info }}</p>
    <p>商品价格:{{ price }}</p>
    <button @click="$emit('kanyidao',1,id)">砍一刀</button>
  </div>
</template>

<script>
export default {
  props: ["id", "pname", "price", "info"],
};
</script>

<style>
.goods {
  padding: 10px;
  margin: 8px;
  border: solid 2px black;
}
</style>